<?php if (!defined('THINK_PATH')) exit();?><!-- 
	
	作者：怼烎
	QQ：1395961821
	时间：2017.10.10

 -->

<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>微信商城</title>

  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <link rel="stylesheet" href="/Public/Moble_home/css/bootstrap.min.css" type="text/css">
  <link rel="stylesheet" type="text/css" href="/Public/Moble_home/css/bootstrap-theme.min.css">
  <link rel="stylesheet" type="text/css" href="/Public/Moble_home/css/order.css">
 	<!--[if lt IE 9]>
      <script src="js/html5shiv.min.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
</head>
<body>

  <nav class="navbar navbar-default navbar-fixed-top">
    <div class="container-fluid">
      <!-- 栅格 -->
      <div class="navbar-header row">
        <div  class="text-center col-xs-12">
          <div class="col-xs-2">
            <a onclick="window.history.back()" class="pull-left">
              <div class="glyphicon glyphicon-menu-left"></div>
            </a>
          </div>
          <div class="col-xs-8">确认订单</div>
          <div class="col-xs-2">
            <div class="pull-right">
              <a href="javascript:void(0);" id="point" class="dropdown-toggle" data-toggle="dropdown"><div class="text-center"><div class="glyphicon glyphicon-option-horizontal"></div></div></a>
                      <ul class="dropdown-menu" aria-labelledby="point">
              <li><a href="/index.php/Home/Index/index"><span class="glyphicon glyphicon-home"></span>&nbsp;&nbsp;首页</a></li>
              <li role="separator" class="divider"></li>
              <li><a href="/index.php/Home/Cart/add_cart"><span class="glyphicon glyphicon-shopping-cart text-center"></span>&nbsp;&nbsp;购物车</a></li><li role="separator" class="divider"></li>
              <li><a href="#"><span class="glyphicon glyphicon-share-alt"></span>&nbsp;&nbsp;分享</a></li>
            </ul>
            </div>
          </div>
        </div>
      </div>
      </div>
  </nav>

  <!-- 收货地址 -->
  <!-- <section class="row">
      <a href="http://www.baidu.com"  class="col-xs-12">
        <div class="col-xs-1">
          <span class="glyphicon glyphicon-map-marker"></span>
        </div>
        <div class="col-xs-9">
          <div>收货人:
            <span>隔壁老王</span>
            <span class="pull-right">13959618214</span></div>
          <div>收货地址:隔壁老王屋</div>
        </div> 
        <div class="col-xs-1 pull-right">
          <span class="glyphicon glyphicon-menu-right pull-right"></span>
        </div>
      </a>
  </section> -->

  <!-- 已选商品 -->
  <section>
    <a href="/index.php/Home/User/showAddressList/id/1">
      <div class="tub"><span class="glyphicon glyphicon-map-marker"></span></div>

      <div class="center">
        <div>收货人:
          <span><?php echo ($default_address['consignee']); ?></span>
          <span class="pull-right"><?php echo ($default_address['mobile']); ?></span>
        </div>
        <div>收货地址:<?php echo ($default_address['province']); ?>&nbsp;<?php echo ($default_address['city']); ?>&nbsp;<?php echo ($default_address['district']); ?>&nbsp;<?php echo ($default_address['twon']); ?>&nbsp;<?php echo ($default_address['address']); ?></div>
      </div>

      <div class="tub"><span class="glyphicon glyphicon-menu-right"></span></div>
    </a>
  </section>

  <article>
    <menu class="list-unstyled">
      <li class="selected"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;已选商品</li>
      <?php if(is_array($all_order)): $i = 0; $__LIST__ = $all_order;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li>
        <hr/>
        <div class="media">
          <div class="media-left">
            <a href="#">
              <img class="media-object" src="<?php echo ($value['goods_url']); ?>" alt="...">
            </a>
          </div>
          <div class="media-body">
            <div class="media-body row">
                <div class="col-xs-12">
                  <div>
                    <span class="media-heading"><?php echo ($value['goods_name']); ?></span>
                  </div>
                </div>
                <div class="col-xs-12">
                  <span>¥<?php echo ($value['goods_price']); ?>元</span>
                  <span class="pull-right">X<?php echo ($value['goods_num']); ?>个</span>
              </div>
          </div>
        </div>
      </div>
      </li><?php endforeach; endif; else: echo "" ;endif; ?>
    </menu>
  </article>

  <!-- 尾部 -->
  <footer class="text-center">
      <ul class="list-unstyled text-right">
        <li><span>商品总额 : </span>¥<span><?php echo ($total_price); ?></span>元</li>
        <li><span>配送金额 : </span>¥<span><?php echo ($post_price); ?></span>元</li>
        <li><span>应付金额 : </span>¥<span><?php echo ($all_price); ?></span>元</li>
      </ul>
      <a href="/index.php/Home/Order/enter_order/id/1">提交订单</a>
  </footer>


    <script src="/Public/Moble_home/js/jquery.min.js" type="text/javascript"></script>
    <script src="/Public/Moble_home/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="/Public/Moble_home/js/order.js" type="text/javascript"></script>
</body>
</html>